/*****************************************************************
 MYD Engine v0.1

 File: myd_entity3d.cpp
 Created: 15/08/09
*****************************************************************/

#include "myd_mesh.h"
#include "graphics/myd_renderer.h"

using namespace myd;

//-----------------------------------------------------------------
Mesh::Mesh(void)
:
wn_x(0),
wn_y(0),
wn_z(0)
{
}
//-----------------------------------------------------------------
Mesh::~Mesh(void)
{
}
//-----------------------------------------------------------------
void Mesh::draw(Renderer &tm_renderer) const
{
	/*/ set the world matrix
	tm_renderer.setMatrixMode(WORLD);

	// reset the matrix
	tm_renderer.loadIdentity();
	
	tm_renderer.rotateZ(0);*/

	//tm_renderer.setTransform(WORLD,
	//wn_mesh->DrawSubset(0);
	Entity2d::draw(tm_renderer);
}
//-----------------------------------------------------------------
void Mesh::setPos(float x, float y, float z)
{
	wn_x = x; wn_y = y; wn_z = z;
}